
import React from 'react';
import { Route, Switch } from 'react-router-dom'
import Container from '@modules/Container'

const Routes = ({routes})=> (
    <Switch>
      {
        routes.map((item,i)=>{
          return (
            <Route key={i} path={item.path} component={Container}/>
          );
        })
      }
    </Switch>
)
export default Routes